package com.lry.util.tree;
/**
 * 工具
 *
 * @author 李瑞益
 * @date 2019/10/10
 */
public class TreeUtil {


    public static Integer getInt(Object object) {
        if (object == null || object.toString().length() == 0) {
            return 0;
        }
        return Integer.parseInt(object.toString());
    }
    /**
     * 取对象的string值
     * @param object 对象
     * @return string
     */
    public static String stringValue(Object object) {
        return object == null ? "":object.toString();
    }
}
